<?php

namespace App\Models;


use App\Models\Concerns\ScopeFilterable;
use App\Observers\Contract\ObserverCleanable;
use App\Services\Utils\OSSable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphTo;

/**
 * Class AdvertType - 广告类型
 *
 * @package App\Models
 */
class AdvertType extends Model
{
    use OSSable,
        ScopeFilterable;

    const ID_SPLASH_IMAGE = 1;
    const ID_SPLASH_VIDEO = 2;
    const ID_IN_APP_IMAGE = 3;

    protected $table = 'advert_types';

    protected static $unguarded = true;

    const SPLASH_IDS = [
        self::ID_SPLASH_IMAGE,
        self::ID_SPLASH_VIDEO,
    ];

    const IN_APP_IDS = [
        self::ID_IN_APP_IMAGE,
    ];
}
